package stz.flash.main;

import stz.flash.option.flashlight.FlashlightOption;

public class BulbStateOfFlashlight implements BulbState {
	
	private static final BulbStateOfFlashlight instance = new BulbStateOfFlashlight();
	
	public static BulbStateOfFlashlight getIns() {
		return instance;
	}

	public void updateBulb(BulbField bulbField) {
		
		if (FlashlightOption.isCurrentFlashState())
		
			bulbField.on();
	
		else
			
			bulbField.off();	
	}
}